package io.process.plus;

/**
 * 参数设置
 * 
 * @author baochunliang
 * @date 2015/07/04
 */
public class ProcessOption {
    /**
     * 超时时间设置，支持1-Long.MAX_VALUE（不能小于1秒）
     */
    private long timeoutInSec = Long.MAX_VALUE;

    /**
     * 超时后输出的日志内容
     */
    private String timeoutExceptionMessage;

    /**
     * 命令工作目录
     */
    private String workingDirectory;

    /**
     * 解析输出的字符集
     */
    private String charsetName;

    public String getCharsetName() {
        return charsetName;
    }

    public void setCharsetName(String charsetName) {
        this.charsetName = charsetName;
    }

    public long getTimeoutInSec() {
        return timeoutInSec;
    }

    public void setTimeoutInSec(long timeoutInSec) {
        this.timeoutInSec = timeoutInSec;
    }

    public String getTimeoutExceptionMessage() {
        return timeoutExceptionMessage;
    }

    public void setTimeoutExceptionMessage(String timeoutExceptionMessage) {
        this.timeoutExceptionMessage = timeoutExceptionMessage;
    }

    public String getWorkingDirectory() {
        return workingDirectory;
    }

    public void setWorkingDirectory(String workingDirectory) {
        this.workingDirectory = workingDirectory;
    }
}
